package com.sunchen.asc.service.item.domain;

import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.UpdateTimestamp;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

@Entity
@Table
@GenericGenerator(name="snowFlow",strategy = "com.sunchen.asc.service.data.SnowflowID")
@Data
/**
 * 受理部门
 */
public class ItemDepartment {

    @Id
    @GeneratedValue(generator = "snowFlow")
    private Long id;

    private Long parentId;

    private String name;

    private int deleteFlag;

    private String code;

    private String description;

    @CreationTimestamp
    private Timestamp createTime;
    private String createUser;
    private Timestamp deleteTime;
    private String deleteUser;
    @UpdateTimestamp
    private Timestamp updateTime;
    private String updateUser;
}
